<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Dash-0.5.10.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;7.&nbsp;Shells
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="shells.html" title="Shells">Prev</a>
          <p>
            Shells
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tcsh.html" title="Tcsh-6.22.02">Next</a>
          <p>
            Tcsh-6.22.02
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="shells.html" title=
          "Chapter&nbsp;7.&nbsp;Shells">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="dash" name="dash"></a>Dash-0.5.10.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Dash
        </h2>
        <p>
          <span class="application">Dash</span> is a POSIX compliant shell.
          It can be installed as /bin/sh or as the default shell for either
          <code class="systemitem">root</code> or a second user with a userid
          of 0. It depends on fewer libraries than the <span class=
          "application">Bash</span> shell and is therefore less likely to be
          affected by an upgrade problem or disk failure. <span class=
          "application">Dash</span> is also useful for checking that a script
          is completely compatible with POSIX syntax.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.10.2.tar.gz">
                http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.10.2.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 8f485f126c05d0ab800e85abfe1987aa
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 220 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 2.9 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Dash Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="ulink" href=
          "http://www.thrysoee.dk/editline/">libedit</a> (command line editor
          library)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/dash">http://wiki.linuxfromscratch.org/blfs/wiki/dash</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Dash
        </h2>
        <p>
          Install <span class="application">Dash</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you would like to make <span class=
          "command"><strong>dash</strong></span> the default <span class=
          "command"><strong>sh</strong></span>, recreate the <code class=
          "filename">/bin/sh</code> symlink as the <code class=
          "systemitem">root</code> user:
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you create the symbolic link from <span class=
            "command"><strong>dash</strong></span> to <span class=
            "command"><strong>sh</strong></span>, you will need to reset the
            link to <span class="command"><strong>bash</strong></span> to
            build LFS.
          </p>
        </div>
        <pre class="userinput">
<kbd class="command">ln -svf dash /bin/sh</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--bindir=/bin</code></em>: This
          parameter places the <span class=
          "command"><strong>dash</strong></span> binary into the root
          filesystem.
        </p>
        <p>
          <code class="option">--with-libedit</code>: To compile <span class=
          "application">Dash</span> with libedit support.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Dash
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="dash-config" name="dash-config"></a>
          </h3>
          <h4 class="title">
            <a id="dash-config" name="dash-config"></a>Config Files
          </h4>
          <p>
            <span class="application">Dash</span> sources <code class=
            "filename">/etc/profile</code> and <code class=
            "filename">~/.profile</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779281319104" name=
            "idm45779281319104"></a>Configuration Information
          </h4>
          <p>
            Update <code class="filename">/etc/shells</code> to include the
            <span class="application">Dash</span> shell by issuing the
            following command as the <code class="systemitem">root</code>
            user:
          </p>
          <pre class="root">
<kbd class="command">cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
<code class="literal">/bin/dash</code>
EOF</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">dash</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Description
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="dash-prog" name="dash-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>dash</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a POSIX compliant shell.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 18:27:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="shells.html" title="Shells">Prev</a>
          <p>
            Shells
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tcsh.html" title="Tcsh-6.22.02">Next</a>
          <p>
            Tcsh-6.22.02
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="shells.html" title=
          "Chapter&nbsp;7.&nbsp;Shells">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
